[#ftl]
	[@jdao.hql("from PageChannel")]
		<label style="margin-right:5px;">
			<input type="checkbox" value="${item.id}" class="pageChannelItem item_${item.id}"/>${item.name}(${item.code})
		</label>
	[/@]
	<script type="text/javascript">
		(function(){
				var val=$("#body").val().split(",");
				$.each(val,function(idx,item){
					$(".item_"+item).attr("checked","checked");
				});
			$(".pageChannelItem").click(function(){
				var vals="";
				$(".pageChannelItem:checked").each(function(idx){
					if(idx!=0){
						vals+=",";
					}
					vals+=$(this).val();
				});
				$("#body").val(vals);
			});
		})();
	</script>
